// 进入主页面的route
let indexAdminRoute = {
  path: "index",
  name: "adminIndex",
  redirect: "/home",
  component: () => import("@/views/index/index.vue"),
  meta: { name: "影沐", showMenu: true },
  children: [
    {
      path: "/home",
      name: "home",
      component: () => import("@/views/home/index.vue"),
      meta: { name: "首页", icon: "home", showMenu: true }
    },
    {
      path: "/member",
      name: "memberMember",
      component: () => import("@/views/commonIndex/index.vue"),
      meta: { name: "会员管理", icon: "team", showMenu: true },
      children: [
        {
          path: "list",
          name: "memberList",
          component: () => import("@/views/member/list/index.vue"),
          meta: { name: "会员列表", showMenu: true }
        }
      ]
    },
    {
      path: "/leading-end",
      name: "adminLeadingEnd",
      component: () => import("@/views/commonIndex/index.vue"),
      meta: { name: "前端管理", icon: "laptop", showMenu: true },
      children: [
        {
          path: "banner",
          name: "leadingEndBanner",
          component: () => import("@/views/leadingEnd/banner/index.vue"),
          meta: { name: "Banner", showMenu: true }
        },
        {
          path: "movie",
          name: "leadingEndMovie",
          component: () => import("@/views/leadingEnd/movie/index.vue"),
          meta: { name: "影视学堂", showMenu: true },
          children: [
            {
              path: "add",
              name: "movieAdd",
              component: () => import("@/views/leadingEnd/movie/add.vue"),
              meta: { name: "新增视频" }
            },
            {
              path: "edit/:id",
              name: "movieEdit",
              component: () => import("@/views/leadingEnd/movie/add.vue"),
              meta: { name: "编辑视频" }
            }
          ]
        }
      ]
    },
    {
      path: "/activity",
      name: "activity",
      component: () => import("@/views/commonIndex/index.vue"),
      meta: { name: "活动专区", icon: "gift", showMenu: true },
      children: [
        {
          path: "task",
          name: "activityTask",
          component: () => import("@/views/activity/task/index.vue"),
          meta: { name: "任务管理", showMenu: true }
        },
        {
          path: "welfare",
          name: "activityWelfare",
          component: () => import("@/views/activity/welfare/index.vue"),
          meta: { name: "福利管理", showMenu: true },
          children: [
            {
              path: "add",
              name: "welfareAdd",
              component: () => import("@/views/activity/welfare/add.vue"),
              meta: { name: "新增福利" }
            },
            {
              path: "edit/:id",
              name: "welfareEdit",
              component: () => import("@/views/activity/welfare/add.vue"),
              meta: { name: "修改福利" }
            }
          ]
        },
        {
          path: "welfareChange",
          name: "activityWelfareChange",
          component: () => import("@/views/activity/welfareChange/index.vue"),
          meta: { name: "福利兑换", showMenu: true }
        }
      ]
    },
    {
      path: "/information",
      name: "information",
      component: () => import("@/views/commonIndex/index.vue"),
      meta: { name: "娱乐资讯", icon: "notification", showMenu: true },
      children: [
        {
          path: "classify",
          name: "informationClassify",
          component: () => import("@/views/information/classify/index.vue"),
          meta: { name: "资讯分类", showMenu: true }
        },
        {
          path: "list",
          name: "informationList",
          component: () => import("@/views/information/list/index.vue"),
          meta: { name: "资讯列表", showMenu: true },
          children: [
            {
              path: "add",
              name: "informationListAdd",
              component: () => import("@/views/information/list/add.vue"),
              meta: { name: "新增资讯" }
            },
            {
              path: "edit/:id",
              name: "informationListEdit",
              component: () => import("@/views/information/list/add.vue"),
              meta: { name: "修改资讯" }
            }
          ]
        }
      ]
    },
    {
      path: "/project",
      name: "project",
      component: () => import("@/views/commonIndex/index.vue"),
      meta: { name: "项目管理", icon: "project", showMenu: true },
      children: [
        {
          path: "classify",
          name: "projectClassify",
          component: () => import("@/views/project/classify/index.vue"),
          meta: { name: "项目分类", showMenu: true }
        },
        {
          path: "list",
          name: "projectList",
          component: () => import("@/views/project/list/index.vue"),
          meta: { name: "项目列表", showMenu: true },
          children: [
            {
              path: "add",
              name: "addProject",
              component: () => import("@/views/project/list/add.vue"),
              meta: { name: "新增项目" }
            },
            {
              path: "edit/:id",
              name: "editProject",
              component: () => import("@/views/project/list/add.vue"),
              meta: { name: "编辑项目" }
            },
            {
              path: "details/:id",
              name: "detailsProject",
              component: () => import("@/views/project/list/add.vue"),
              meta: { name: "项目详情" }
            }
          ]
        },
        {
          path: "type",
          name: "projectType",
          component: () => import("@/views/project/type/index.vue"),
          meta: { name: "类型管理", showMenu: true }
        }
      ]
    },
    {
      path: "/association",
      name: "association",
      component: () => import("@/views/commonIndex/index.vue"),
      meta: { name: "社群管理", icon: "contacts", showMenu: true },
      children: [
        {
          path: "manage",
          name: "associationManage",
          component: () => import("@/views/association/manage/index.vue"),
          meta: { name: "群组管理", showMenu: true }
        },
        {
          path: "classify",
          name: "associationClassify",
          component: () => import("@/views/association/classify/index.vue"),
          meta: { name: "群组分类", showMenu: true }
        },
        {
          path: "posted",
          name: "associationPosted",
          component: () => import("@/views/association/posted/index.vue"),
          meta: { name: "发帖列表", showMenu: true },
          children: [
            {
              path: "add",
              name: "addPosted",
              component: () => import("@/views/association/posted/add.vue"),
              meta: { name: "新增发帖" }
            },
            {
              path: "detail/:id",
              name: "detailPosted",
              component: () => import("@/views/association/posted/detail.vue"),
              meta: { name: "发帖详情" }
            },
            {
              path: "check/:id",
              name: "checkPosted",
              component: () => import("@/views/association/posted/check.vue"),
              meta: { name: "发帖审核" }
            }
          ]
        },
        {
          path: "comment",
          name: "associationComment",
          component: () => import("@/views/association/comment/index.vue"),
          meta: { name: "评论列表", showMenu: true },
          children: [
            {
              path: "add",
              name: "addComment",
              component: () => import("@/views/association/comment/add.vue"),
              meta: { name: "新增评论" }
            }
          ]
        }
      ]
    },
    {
      path: "/authority",
      name: "authority",
      component: () => import("@/views/commonIndex/index.vue"),
      meta: { name: "权限管理", icon: "safety-certificate", showMenu: true },
      children: [
        {
          path: "role",
          name: "authorityRole",
          component: () => import("@/views/authority/role/index.vue"),
          meta: { name: "角色管理", showMenu: true },
          children: [
            {
              path: "add",
              name: "authorityRoleAdd",
              component: () => import("@/views/authority/role/add.vue"),
              meta: { name: "新增角色" }
            },
            {
              path: "edit/:id",
              name: "authorityRoleEdit",
              component: () => import("@/views/authority/role/add.vue"),
              meta: { name: "编辑角色" }
            },
            {
              path: "authority-role/:id",
              name: "authorityAuthorityRole",
              component: () =>
                import("@/views/authority/role/authorization.vue"),
              meta: { name: "授权用户" }
            }
          ]
        },
        {
          path: "user",
          name: "authorityUser",
          component: () => import("@/views/authority/user/index.vue"),
          meta: { name: "用户管理", showMenu: true },
          children: [
            {
              path: "add",
              name: "authorityUserAdd",
              component: () => import("@/views/authority/user/add.vue"),
              meta: { name: "新增用户" }
            },
            {
              path: "edit/:id",
              name: "authorityUserEdit",
              component: () => import("@/views/authority/user/edit.vue"),
              meta: { name: "编辑用户" }
            },
            {
              path: "authorizationRole/:id",
              name: "authorityUserAuthorizationRole",
              component: () =>
                import("@/views/authority/user/authorizationRole.vue"),
              meta: { name: "授权角色" }
            }
          ]
        },
        {
          path: "node",
          name: "authorityNode",
          component: () => import("@/views/authority/node/index.vue"),
          meta: { name: "节点管理", showMenu: true },
          children: [
            {
              path: "add",
              name: "authorityNodeAdd",
              component: () => import("@/views/authority/node/add.vue"),
              meta: { name: "新增节点" }
            },
            {
              path: "edit/:id",
              name: "authorityNodeEdit",
              component: () => import("@/views/authority/node/add.vue"),
              meta: { name: "编辑节点" }
            }
          ]
        }
      ]
    },
    {
      path: "/instrument",
      name: "instrument",
      component: () => import("@/views/commonIndex/index.vue"),
      meta: { name: "站长工具", icon: "setting", showMenu: true },
      children: [
        {
          path: "login",
          name: "instrumentLogin",
          component: () => import("@/views/instrument/login/index.vue"),
          meta: { name: "登录日志", showMenu: true }
        },
        {
          path: "operation",
          name: "instrumentOperation",
          component: () => import("@/views/instrument/operation/index.vue"),
          meta: { name: "操作日志", showMenu: true }
        }
      ]
    }
  ]
};
export default indexAdminRoute;
